package com.richest.api.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.richest.api.dao.PermissionMapper;
import com.richest.api.service.IPermissionService;
import com.richest.bean.PermissionBean;

/**
 * 权限信息管理服务接口实现
 * @author 杨博
 * @version richest-api 2.0
 *
 */
@Service
public class PermissionServiceImpl implements IPermissionService {

	@Autowired
	private PermissionMapper mapper;

	@Override
	public Integer permissionAdd(PermissionBean bean) {
		return mapper.permissionAdd(bean);
	}

	@Override
	public Integer permissionUpdate(PermissionBean bean) {
		return mapper.permissionUpdate(bean);
	}

	@Override
	public Integer permissionDelete(Long id) {
		return mapper.permissionDelete(id);
	}

	@Override
	public PermissionBean permissionSelectOne(Long id) {
		return mapper.permissionSelectOne(id);
	}

	@Override
	public List<Map<String, Object>> permissionSelectMap(Map<String, Object> params) {
		return mapper.permissionSelectMap(params);
	}
}
